"""
__author__ = '霍格沃兹测试开发学社'
__desc__ = '更多测试开发技术探讨，请访问：https://ceshiren.com/t/topic/15860'
"""

# from app_practice.PO_pract.page.editcontact_page import EditContactPage
from appium.webdriver.common.appiumby import AppiumBy

from app_practice.PO_pract.frame.base import Base


class AddMemberPage(Base):
    _TEXT_ADD_BYMENUAL = (AppiumBy.XPATH, "//*[@text='手动输入添加']")

    def click_addmember_menual(self):
        # 点击手动输入添加
        # 点击【手动输入添加】
        self.do_find(self._TEXT_ADD_BYMENUAL).click()

        from app_practice.PO_pract.page.editcontact_page import EditContactPage
        return EditContactPage(self.driver)

    def get_tips(self):
        toasttext = self.get_toasttext()

        return toasttext
